import request from '@/utils/request'

// 查询奖励分销比列表
export function listRatio(query) {
    return request({
        url: '/bizsys/ratio/list',
        method: 'get',
        params: query
    })
}

// 查询奖励分销比详细
export function getRatio(id) {
    return request({
        url: '/bizsys/ratio/' + id,
        method: 'get'
    })
}

// 新增奖励分销比
export function addRatio(data) {
    return request({
        url: '/bizsys/ratio',
        method: 'post',
        data: data
    })
}

// 修改奖励分销比
export function updateRatio(data) {
    return request({
        url: '/bizsys/ratio',
        method: 'put',
        data: data
    })
}

// 删除奖励分销比
export function delRatio(id) {
    return request({
        url: '/bizsys/ratio/' + id,
        method: 'delete'
    })
}

// 导出奖励分销比
export function exportRatio(query) {
    return request({
        url: '/bizsys/ratio/export',
        method: 'get',
        params: query
    })
}